<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>商务-server</title>
    <link rel="stylesheet" href="lib/css/bootstrap.min.css" />
    <link rel="stylesheet" href="app/css/ng006.css" />
  </head>
  <body>
    <div ng-controller="MyCtrl" class="ng006">
      <div>
        <label>
          <input type="checkbox" ng-model="showsub" />
          <span>是否显示子页面</span>
        </label>
      </div>
      <div ng-if="showsub" ng-include="'ng006-inc.html'"></div>
      <hr />
      <div class="text-center">
        <span class="btn btn-danger" ng-click="sendOne();">请求一</span>
      </div>
      <hr />
      <div>应答结果:<span ng-bind="result"></span></div>
      <hr />
      <div class="myform">
        <div class="form-group">
          <input type="text" ng-model="formdata.username" class="form-control" placeholder="输入用户名">
      </div>
      <div class="form-group">
       <input type="password" ng-model="formdata.password" class="form-control" placeholder="输入密码">
      </div>
      <div class="text-center">
     <span class="btn btn-primary" ng-click="login()">登录</span>
     <span class="btn btn-primary" ng-click="formdata={};">取消</span>
      </div>
      <hr>
    </div>
    <div class="text-center">
      <span class="btn btn-primary" ng-click="getUserInfo();">获取用户信息</span>
      <span class="btn btn-primary" ng-click="logout();">安全退出</span>
    </div>
    <hr>
    <div>
      <img ng-src="{{imgcode}}" alt="changeImage">
      <a href="javascript:void(0);" ng-click="changeImage()">看不清更换一张</a>
    </div>
    <div class="form-group">
    <div class="input-group">
        <input type="text" ng-model="checkImgcode" placeholder="请输入图片校验码" class="form-control">
        <span class="input-group-addon btn btn-primary" ng-click="doImgCheck();">确定</span>
    </div>
    </div>
    </div>

    <script src="lib/js/jquery.min.js"></script>
    <script src="lib/js/bootstrap.min.js"></script>
    <script src="lib/js/angular.min.js"></script>
    <!-- <script src="lib/js/angular-route.min.js"></script> -->
    <script src="lib/js/angular-messages.min.js"></script>
    <script src="lib/js/angular-animate.min.js"></script>
    <script src="lib/js/angular-sanitize.min.js"></script>
    <script src="app/js/init.js"></script>
    <!-- 业务逻辑js开始 -->
    <script src="app/js/ng006.js"></script>
    <script src="app/js/ng006-inc.js"></script>
    <script src="app/js/services.js"></script>
    <script src="app/js/DataService.js"></script>
    <!-- 业务逻辑js结束 -->
    <script src="app/js/startup.js"></script>
  </body>
</html>
